package DBLayer;
/**
 * Dennis
 * 
 * Interface for supplier
 */
import java.util.ArrayList;
import ModelLayer.Supplier;

public interface IFDBSupplier {
	// get all Suppliers
    public ArrayList<Supplier> getAllSuppliers();
    // filter suppliers
    public ArrayList<Supplier> getAllSuppliers(String filter);
    //find one supplier having the supplier name 
    public Supplier searchSupplier(String name);
    //find it using the id.
    public Supplier searchSupplier(int id);
    //insert new supplier
    public int insertSupplier(Supplier sup) throws Exception;
    //update supplier
    public int updateSupplier(Supplier sup);
    //delete supplier
    public int deleteSupplier(Supplier sup);
}
